//SitemapHeader_INC.js

function SetLayoutHeight() {
    var Header = $("#Header");
    var Footer = $("#Footer");
    var Content = $("#Content");

    var Height = ($(window).height() - (Header.height() + Footer.height()));

    if (Content.height() > Height) {
        Height = Content.height();
    }

    var LayoutTable = $("#MainLayoutTable");

    if (Height > 0) {

        Content.css({
            "height": Height + "px",
            "min-height": Height + "px"
        });

        LayoutTable.css({
            "height": Height + "px",
            "min-height": Height + "px"
        });

        var FullHeight = $("#FullHeight, .FullHeight");

        if (FullHeight.length > 0) {
            var LayoutHeader = $("#MainLayoutHeader");
            var LayoutFooter = $("#MainLayoutFooter");

            FullHeight.css({ "height": (Height - LayoutHeader.height() - LayoutFooter.height()) + "px" });
            $(".cke_contents", FullHeight).css({ "height": ((Height - LayoutHeader.height() - LayoutFooter.height()) - $(".cke_top", FullHeight).outerHeight() - $(".cke_bottom", FullHeight).outerHeight() - 2) + "px" });
        }
    }

     Header.css({ "width": (LayoutTable.width()) + "px" });
     Footer.css({ "width": (LayoutTable.width()) + "px" });

}